package com.github.binarywang.demo.wx.mp.beans;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @discription: 传递微信多商户的dto
 * @author: chi
 * @Date: 19:17 2017/8/29/029
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "gzh")
@ApiModel(value = "公众号对象",description = "公众号信息")
public class WxMultiConfigDto {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private  Long id;
    /**
     * 微信的平台id,自定义即可,注意不可重复= TokenProccessor.getInstance().makeToken()= ClientIDProccessor.getInstance().makeClientID()
     */
    @ApiModelProperty(value = "用户id")
    private String client_id;

    @ApiModelProperty(value = "公众号id",required=true)
    private String appid;

    @ApiModelProperty(value = "公众号秘钥",required=true)
    private String appsecret;

    @ApiModelProperty(value = "公众号token")
    private String token;

    @ApiModelProperty(value = "号主id",required=true)
    private String hao_zhu_id;

    @ApiModelProperty(value = "公众号aes_key")
    private String aes_key;

    @ApiModelProperty(value = "服务器地址")
    private String url;

    @ApiModelProperty(value = "公众号名字")
    private String name;

    @ApiModelProperty(value = "当前粉丝量")
    private String currentNum;

    @ApiModelProperty(value = "新增粉丝量")
    private String aadNum;

    @ApiModelProperty(value = "公众号头像")
    private String image;

    @ApiModelProperty(value = "公众号状态 status: available 表示可用，disable表示禁用")//1：可用  0：禁用
    private String status;
//    @ApiModelProperty(value = "公众号绑定时间")
//    private Date bind_time;
    /**
     * 以下为有关业务性的字段
     */
    private String templateId;
    private String billTemplateId;

}
